import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';

import './index.scss';
import injectTapEventPlugin from 'react-tap-event-plugin';
import registerServiceWorker from './registerServiceWorker';
import store from './service/store';
import routes from './service/router';

injectTapEventPlugin();

ReactDOM.render((
  <Provider store={store}>
    {routes}
  </Provider>
  ), document.getElementById('root'));
registerServiceWorker();
